/**
 * Created by Administrator on 2017/6/21.
 */

var model = require('../models/SpreaderModel');



// params={
//     openid:'oSx2ps7hAjniYA1eKD5c5YdCLBco000',
//     qrcodeaddress:'1234567890'
// }
// model.saveSpreader(params,function (err,result) {
//     console.log(result);
// })


// var params={
//     open_id :'oSx2ps7hAjniYA1eKD5c5YdCLBco000',
//     member_id:parseInt(54)
// }
// model.saveScanOpenid(params,function (err,result) {
//     console.log(result);
// });
let params ={
    open_id :'oSx2ps7hAjniYA1eKD5c5YdCLBco000',
}
model.getSpreaderbyopenid(params,function (err,result) {
    console.log(result)
})

